/*
 * @Author: liuzelin
 * @Date: 2024-05-01 09:37:13
 * @LastEditors: liuzelin
 * @LastEditTime: 2024-05-19 21:05:10
 * @Description: file content
 */
#pragma once
#include <stdint.h>
#include <cstddef>

namespace Panda {
    
class TransmissionChannel {
public:
virtual void Send(uint8_t *data, size_t len) = 0;
};

struct SessionParam {
  uint32_t sid = 0;
  uint32_t priority = 0;
  size_t max_cache_size = 5 * 1024 * 1024;
  bool is_order = true;
  bool is_reliable = true;
  bool enable_time_out_retrans = false;
  uint16_t max_retrans_num = 0xffff;
  uint16_t max_retrans_time = 0xffff;
};
}  // namespace Panda